import request from '@/service'

export const getTodoList = (param) => {
  return request({
    url: '/blade-workflow/process/todoList',
    method: 'get',
    isAuth: true,
    param
  })
}

/**
 * 获取商机详情
 * @param {string} id 商机 id
 * @param {string} projectCode 商机编码 存在 id 情况下不传
 * @param {string} num  列表第几条，上下翻页
 * @return {Object}
 */
export const opportunityDetail = (param) => {
  return request({
    url: '/mms-business/businessOpportunity/getUpOrDownDetail',
    method: 'get',
    param
  })
}

//获取投标列表详情
export const getBidListDetail = (param) => {
  return request({
    url: '/mms-business/biddingBase/getDetailById',
    method: 'get',
    param
  })
}